package com.gq.rising.common;

/**
 *  @Description: 数据源
 *  @Author: GQ
 */
public class DbSource{
    // 数据库
    private String name;
    // 数据库地址
    private String url;
    //端口号
    private String port;
    // 数据库驱动
    private String driverClassName;
    // 用户名
    private String username;
    // 密码
    private String password;

    //数据库是否连接成功标志 1-成功过 0-没成功
    private Integer connectSuccessFlag;

    public DbSource(){
        this.connectSuccessFlag = 0;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getConnectSuccessFlag() {
        return connectSuccessFlag;
    }

    public void setConnectSuccessFlag(Integer connectSuccessFlag) {
        this.connectSuccessFlag = connectSuccessFlag;
    }

    @Override
    public String toString() {
        return "DbSource{" +
                "name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", port='" + port + '\'' +
                ", driverClassName='" + driverClassName + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", connectSuccessFlag=" + connectSuccessFlag +
                '}';
    }
}
